package com.zretc.service.impl;

import java.util.List;
import java.util.Map;

import com.zretc.dao.SongDao;
import com.zretc.dao.impl.SongDaoImpl;
import com.zretc.entity.Song;
import com.zretc.service.SongService;
import com.zretc.util.PageInfo;

/**
 * song业务层实现类
 * @author Administrator
 * 
 */
public class SongServiceImpl implements SongService{
	private SongDao songDao = new SongDaoImpl();
	
	@Override
	public PageInfo<Song> getSongByConditionAndOrder(Map<String, String> map) {
		
		return songDao.findSongByConditionAndOrder(map);
	}
	
	@Override
	public List<Song> getSongBySongName(String songName) {
		
		return songDao.findSongBySongName(songName);
	}
	
	@Override
	public Song getSongBySongId(Integer songId) {
		return songDao.findSongBySongId(songId);
	}

}
